package com.arcadia.d2dmg.activity;

import com.arcadia.d2dmg.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.arcadia.d2dmg.CoreDamageCalculator;

public class D2dmgCore extends Activity{
	Intent nextActivity;
	
	Button selectHero;
	Button setCondition;
	Button showResult;
	
	TextView heroText;
	
	
	
	
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.d2dmgcore);
		
		
		
		//show current selected hero
		heroText = (TextView) findViewById(R.id.currentHero);
		
		if(CoreDamageCalculator.getInstance().getHero() == null){
			heroText.setText("");
		}else{
			heroText.setText(CoreDamageCalculator.getInstance().getHero().getName());
		}
		
		
		
		
		//select hero button
		selectHero.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				
			}
			
		});

		//set condition button
		setCondition.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
			}
			
		});
		
		//show result button
		showResult.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				
			}
			
		});
	}
	
	
}
